<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>添加</title>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/commonCss.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<%@include file="/resource/common/validate.jspf"%>
<script type="text/javascript" src="${ctxStatic }/js/system/asyncDoSubmitForm.js"></script>

</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="content-box" >
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1">
						<fieldset>
							<input type="hidden" id="asyncResult" name="asyncResult" value="-1" /> 
							<input type="hidden" id="asyncResultData" name="asyncResultData" value="-1" /> 
							<input type="hidden" id="asyncResultError" name="asyncResultError" value="-1" />
							<form:form id="inputForm" name="form1" class="form-horizontal" method="post" action="addWebWeather.do" modelAttribute="WebWeather">
								<div class="row">
									<div class="col-md-6 col-sm-6 col-xs-6" >
										<input type="hidden" id="id" name="id" value="${entity.id}" />
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">location:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.location}" name="location" id="location"  placeholder="location"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">地区／城市ID:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.cid}" name="cid" id="cid"  placeholder="地区／城市ID"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">地区／城市经度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.lon}" name="lon" id="lon"  placeholder="地区／城市经度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">地区／城市经度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.lat}" name="lat" id="lat"  placeholder="地区／城市经度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">该地区／城市的上级城市:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.parentCity}" name="parentCity" id="parentCity"  placeholder="该地区／城市的上级城市"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">该地区／城市所属行政区域:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.adminAre}A" name="adminArea" id="adminArea"  placeholder="该地区／城市所属行政区域"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">该地区／城市所属国家名称:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.cnty}" name="cnty" id="cnty"  placeholder="该地区／城市所属国家名称"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">该地区／城市所在时区:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.tz}" name="tz" id="tz"  placeholder="该地区／城市所在时区"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">当地时间，24小时制，格式yyyy-MM-dd HH:mm:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.loc}" name="loc" id="loc"  placeholder="当地时间，24小时制，格式yyyy-MM-dd HH:mm"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">UTC时间，24小时制，格式yyyy-MM-dd HH:mm:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.utc}" name="utc" id="utc"  placeholder="UTC时间，24小时制，格式yyyy-MM-dd HH:mm"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">预报日期:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.date}" name="date" id="date"  placeholder="预报日期"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">日出时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.sr}" name="sr" id="sr"  placeholder="日出时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">日落时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.ss}" name="ss" id="ss"  placeholder="日落时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">月升时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.mr}" name="mr" id="mr"  placeholder="月升时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">月落时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.ms}" name="ms" id="ms"  placeholder="月落时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">最高温度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.tmpMax}" name="tmpMax" id="tmpMax"  placeholder="最高温度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">最低温度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.tmpMin}" name="tmpMin" id="tmpMin"  placeholder="最低温度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">白天天气状况代码:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.condCodeD}" name="condCodeD" id="condCodeD"  placeholder="白天天气状况代码"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">晚间天气状况代码:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.condCodeN}" name="condCodeN" id="condCodeN"  placeholder="晚间天气状况代码"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">白天天气状况描述:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.condTxtD}" name="condTxtD" id="condTxtD"  placeholder="白天天气状况描述"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">晚间天气状况描述:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.condTxtN}" name="condTxtN" id="condTxtN"  placeholder="晚间天气状况描述"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">风向360角度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.windDeg}" name="windDeg" id="windDeg"  placeholder="风向360角度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">风向:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.windDir}" name="windDir" id="windDir"  placeholder="风向"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">风力:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.windSc}" name="windSc" id="windSc"  placeholder="风力"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">风速，公里/小时:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.windSpd}" name="windSpd" id="windSpd"  placeholder="风速，公里/小时"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">相对湿度:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.hum}" name="hum" id="hum"  placeholder="相对湿度"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">降水量:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.pcpn}" name="pcpn" id="pcpn"  placeholder="降水量"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">降水概率:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.pop}" name="pop" id="pop"  placeholder="降水概率"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">大气压强:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.pres}" name="pres" id="pres"  placeholder="大气压强"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">能见度，单位：公里:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.vis}" name="vis" id="vis"  placeholder="能见度，单位：公里"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">紫外线强度指数:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.uvIndex}" name="uvIndex" id="uvIndex"  placeholder="紫外线强度指数"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">是否启用:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.status}" name="status" id="status"  placeholder="是否启用"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">创建时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.createTime}" name="createTime" id="createTime"  placeholder="创建时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">更新时间:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.updateTime}" name="updateTime" id="updateTime"  placeholder="更新时间"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">创建者ID:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.createId}" name="createId" id="createId"  placeholder="创建者ID"/>
											</div>
										</div>
										<div class="form-group">
											<label class="col-md-2 col-sm-2 col-xs-2 control-label">修改者ID:<span style="color: red">*</span></label>
											<div class="col-md-10 col-sm-10 col-xs-10">
												<input type="text" class="form-control input-sm" value="${entity.updateId}" name="updateId" id="updateId"  placeholder="修改者ID"/>
											</div>
										</div>
									</div>
									<div class="col-md-6 col-sm-6 col-xs-6" >
									
									</div>
								</div>
							</form:form>
						</fieldset>
					</div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
var result = 0;
var validateForm;
//ShowEditor("#memo", "word_count");
$(document).ready(function() {
	validateForm = $("#inputForm").validate({
		rules : {
			id : {
				required : true
			},
			location : {
				required : true
			},
			cid : {
				required : true
			},
			lon : {
				required : true
			},
			lat : {
				required : true
			},
			parentCity : {
				required : true
			},
			adminArea : {
				required : true
			},
			cnty : {
				required : true
			},
			tz : {
				required : true
			},
			loc : {
				required : true
			},
			utc : {
				required : true
			},
			date : {
				required : true
			},
			sr : {
				required : true
			},
			ss : {
				required : true
			},
			mr : {
				required : true
			},
			ms : {
				required : true
			},
			tmpMax : {
				required : true
			},
			tmpMin : {
				required : true
			},
			condCodeD : {
				required : true
			},
			condCodeN : {
				required : true
			},
			condTxtD : {
				required : true
			},
			condTxtN : {
				required : true
			},
			windDeg : {
				required : true
			},
			windDir : {
				required : true
			},
			windSc : {
				required : true
			},
			windSpd : {
				required : true
			},
			hum : {
				required : true
			},
			pcpn : {
				required : true
			},
			pop : {
				required : true
			},
			pres : {
				required : true
			},
			vis : {
				required : true
			},
			uvIndex : {
				required : true
			},
			status : {
				required : true
			},
			createTime : {
				required : true
			},
			updateTime : {
				required : true
			},
			createId : {
				required : true
			},
			updateId : {
				required : true
			},
		},
		messages : {
			id : {
				required : "地区／城市名称不能为空"
			},
			location : {
				required : "location不能为空"
			},
			cid : {
				required : "地区／城市ID不能为空"
			},
			lon : {
				required : "地区／城市经度不能为空"
			},
			lat : {
				required : "地区／城市经度不能为空"
			},
			parentCity : {
				required : "该地区／城市的上级城市不能为空"
			},
			adminArea : {
				required : "该地区／城市所属行政区域不能为空"
			},
			cnty : {
				required : "该地区／城市所属国家名称不能为空"
			},
			tz : {
				required : "该地区／城市所在时区不能为空"
			},
			loc : {
				required : "当地时间，24小时制，格式yyyy-MM-dd HH:mm不能为空"
			},
			utc : {
				required : "UTC时间，24小时制，格式yyyy-MM-dd HH:mm不能为空"
			},
			date : {
				required : "预报日期不能为空"
			},
			sr : {
				required : "日出时间不能为空"
			},
			ss : {
				required : "日落时间不能为空"
			},
			mr : {
				required : "月升时间不能为空"
			},
			ms : {
				required : "月落时间不能为空"
			},
			tmpMax : {
				required : "最高温度不能为空"
			},
			tmpMin : {
				required : "最低温度不能为空"
			},
			condCodeD : {
				required : "白天天气状况代码不能为空"
			},
			condCodeN : {
				required : "晚间天气状况代码不能为空"
			},
			condTxtD : {
				required : "白天天气状况描述不能为空"
			},
			condTxtN : {
				required : "晚间天气状况描述不能为空"
			},
			windDeg : {
				required : "风向360角度不能为空"
			},
			windDir : {
				required : "风向不能为空"
			},
			windSc : {
				required : "风力不能为空"
			},
			windSpd : {
				required : "风速，公里/小时不能为空"
			},
			hum : {
				required : "相对湿度不能为空"
			},
			pcpn : {
				required : "降水量不能为空"
			},
			pop : {
				required : "降水概率不能为空"
			},
			pres : {
				required : "大气压强不能为空"
			},
			vis : {
				required : "能见度，单位：公里不能为空"
			},
			uvIndex : {
				required : "紫外线强度指数不能为空"
			},
			status : {
				required : "是否启用不能为空"
			},
			createTime : {
				required : "创建时间不能为空"
			},
			updateTime : {
				required : "更新时间不能为空"
			},
			createId : {
				required : "创建者ID不能为空"
			},
			updateId : {
				required : "修改者ID不能为空"
			},
		},
		errorElement : "em",
		errorClass : "validate_error",
		submitHandler: function(form) { //通过之后回调
		},
		invalidHandler: function(form, validator) {
			return false;
		}
	});
});

</script>	
</body>
</html>